<?php
/**
 * 云打印平台
 * @author lss
 * 2017-08-30
 */
namespace soa\mp\cloudPrint;

use soa\client;

class orderListFile  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//添加任务文件
	public function insert($taskId,$file,$type = "xml"){
		return $this->post("api/cloudPrint/orderListFile/insert",compact('taskId','file','type'));
	}

	//查询任务文件
	public function getTaskFile($taskId,$type = "xml"){
		return $this->post("api/cloudPrint/orderListFile/getTaskFile",compact('taskId','type'));
	}

	//设置打印任务id
	public function setPrintTaskId($taskId,$file,$printTaskId){
		return $this->post("api/cloudPrint/orderListFile/setPrintTaskId",compact('taskId','file','printTaskId'));
	}

	//根据打印任务id查询
	public function getByPrintTaskId($printTaskId){
		return $this->post("api/cloudPrint/orderListFile/getByPrintTaskId",compact('printTaskId'));
	}

	//设置打印任务状态
	public function setPrintStatus($printTaskId,$printStatus){
		return $this->post("api/cloudPrint/orderListFile/setPrintStatus",compact('printTaskId','printStatus'));
	}
}